package com.cr.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class ShopClient implements Serializable{
	@Id
	private String email;

	@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "relatedShopClient")
	private Set<ShopClientItems> shopClientItems = new HashSet<ShopClientItems>();

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Set<ShopClientItems> getShopClientItems() {
		return shopClientItems;
	}

	public void setShopClientItems(Set<ShopClientItems> shopClientItems) {
		this.shopClientItems = shopClientItems;
	}

}
